.PHONY: consume_client publish_client
all: consume_client publish_client
consume_client:consume_client.cc ../mqcommon/mq_proto.pb.cc ../mqcommon/msg.pb.cc ../third/include/muduo/proto/codec.cc
	g++ -o $@ $^ -g -std=c++11 -I../third/include -L../third/lib -lmuduo_net -lmuduo_base -lz -pthread -lprotobuf
publish_client:publish_client.cc ../mqcommon/mq_proto.pb.cc ../mqcommon/msg.pb.cc ../third/include/muduo/proto/codec.cc
	g++ -o $@ $^ -g -std=c++11 -I../third/include -L../third/lib -lmuduo_net -lmuduo_base -lz -pthread -lprotobuf